<template>
  <div class="home">
    <BaseCode msg="vue基础" otherMsg="123123" @send-value="getValue">
      <template #footer>123</template>
    </BaseCode>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import BaseCode from "@/components/BaseCode.vue"; // @ is an alias to /src

export default defineComponent({
  name: "HomeView",
  components: {
    BaseCode,
  },
  setup(props) {
    const getValue = (data: number) => {
      console.log("接受参数", data);
    };
    return {
      getValue,
    };
  },
});
</script>
